package socket.client;
 
import java.io.IOException;
import java.io.PrintWriter;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TabHost;

public class TCPClientActivity extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        TabHost tabhost = (TabHost) findViewById(R.id.tabhost);
        tabhost.setup();
        TabHost.TabSpec spec;
        spec = tabhost.newTabSpec("Your");
        spec.setContent(R.id.tabYour);
        spec.setIndicator("Your");
        tabhost.addTab(spec);
        spec = tabhost.newTabSpec("My");
        spec.setContent(R.id.tabMy);
        spec.setIndicator("My");
        tabhost.addTab(spec);
        spec = tabhost.newTabSpec("Settting");
        spec.setContent(R.id.tabSet);
        spec.setIndicator("Setting");
        tabhost.addTab(spec);
        tabhost.setCurrentTab(0);
        final Intent intent = new Intent(this, Write.class);
        
        Button btn = (Button) findViewById(R.id.bt_goWrt);
        btn.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            	
            	startActivity(intent);
            }
        });
    }
}